home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / Libraries / DCLAP 6d / dclap6d / corelib / ncbilcl.so86 < prev    next >
Text File  |  1996-07-05  |  5KB  |  152 lines

  1. /*   ncbilcl.h
  2. * ===========================================================================
  3. *
  4. *                            PUBLIC DOMAIN NOTICE
  5. *               National Center for Biotechnology Information
  6. *
  7. *  This software/database is a "United States Government Work" under the
  8. *  terms of the United States Copyright Act.  It was written as part of
  9. *  the author's official duties as a United States Government employee and
  10. *  thus cannot be copyrighted.  This software/database is freely available
  11. *  to the public for use. The National Library of Medicine and the U.S.
  12. *  Government have not placed any restriction on its use or reproduction.
  13. *
  14. *  Although all reasonable efforts have been taken to ensure the accuracy
  15. *  and reliability of the software and data, the NLM and the U.S.
  16. *  Government do not and cannot warrant the performance or results that
  17. *  may be obtained by using this software or data. The NLM and the U.S.
  18. *  Government disclaim all warranties, express or implied, including
  19. *  warranties of performance, merchantability or fitness for any particular
  20. *  purpose.
  21. *
  22. *  Please cite the author in any work or product based on this material.
  23. *
  24. * ===========================================================================
  25. *
  26. * File Name:  ncbilcl.h
  27. *
  28. * Author:  Gish, Kans, Ostell, Schuler, Epstein
  29. *
  30. * Version Creation Date:   3/16/93
  31. *
  32. * $Revision: 1.6 $
  33. *
  34. * File Description:
  35. *        system dependent header
  36. *        for Solaris 2.2 on a SPARCstation
  37. *
  38. * Modifications:
  39. * --------------------------------------------------------------------------
  40. * Date     Name        Description of modification
  41. * -------  ----------  -----------------------------------------------------
  42. * Jan'95   D.Gilbert   Solaris 2 on Intel x86 (Sol cc & CC compilers)
  43. *
  44. * ==========================================================================
  45. */
  46. #ifndef _NCBILCL_
  47. #define _NCBILCL_
  48.  
  49. /* PLATFORM DEFINITION FOR Solaris Unix on SparcStation */
  50.  
  51. #define COMP_SUNPRO
  52. #define OS_UNIX
  53. #define OS_UNIX_SYSV
  54. /*#define PROC_SPARC */
  55. #define PROC_I80X86
  56. #define WIN_DUMB
  57.  
  58. /*----------------------------------------------------------------------*/
  59. /*      Desired or available feature list                               */
  60. /*----------------------------------------------------------------------*/
  61. /*#define MPROC_AVAIL*/
  62. #define SYSV_IPC_AVAIL    /* System V Interprocess Communication available */
  63. #define SYSV_STREAMS_AVAIL    /* System V STREAMS module available */
  64.  
  65. #ifdef MPROC_AVAIL
  66. /* For Solaris, _REENTRANT must be defined when compiling all modules or none */
  67. #define _REENTRANT
  68. #define SOLARIS_THREADS_AVAIL
  69. #endif
  70.  
  71. /*----------------------------------------------------------------------*/
  72. /*      #includes                                                       */
  73. /*----------------------------------------------------------------------*/
  74. #include <sys/types.h>
  75. #include <limits.h>
  76. #include <sys/stat.h>
  77. #include <stddef.h>
  78. #include <stdio.h>
  79. #include <ctype.h>
  80. #include <string.h>
  81. #include <malloc.h>
  82. #include <memory.h>
  83. #include <stdlib.h>
  84. #include <math.h>
  85. #include <float.h>
  86. #include <unistd.h>
  87. #ifdef MPROC_AVAIL
  88. #include <thread.h>
  89. #include <synch.h>
  90. #endif
  91. #include <errno.h>
  92.  
  93. /*----------------------------------------------------------------------*/
  94. /*      Missing ANSI-isms                                               */
  95. /*----------------------------------------------------------------------*/
  96. #define noalias /* "noalias" keyword not accepted by SunPro C */
  97. #ifndef FILENAME_MAX
  98. #define FILENAME_MAX    1024
  99. #endif
  100.  
  101. /*----------------------------------------------------------------------*/
  102. /*      Aliased Logicals, Datatypes                                     */
  103. /*----------------------------------------------------------------------*/
  104.  
  105. /*----------------------------------------------------------------------*/
  106. /*      Misc Macros                                                     */
  107. /*----------------------------------------------------------------------*/
  108. #define PROTO(x)    x
  109. #define VPROTO(x)    x
  110. #define DIRDELIMCHR    '/'
  111. #define DIRDELIMSTR    "/"
  112. #define CWDSTR    "."
  113.  
  114. #define KBYTE    (1024)
  115. #define MBYTE    (1048576)
  116.  
  117. #ifdef PROC_I80X86
  118. #define IS_LITTLE_ENDIAN
  119. #else
  120. #define IS_BIG_ENDIAN
  121. #endif
  122. #define TEMPNAM_AVAIL
  123.  
  124. /*----------------------------------------------------------------------*/
  125. /*      For importing MS_DOS code                                       */
  126. /*----------------------------------------------------------------------*/
  127. #define near
  128. #define far
  129. #define huge
  130. #define cdecl
  131. #define pascal
  132. #define _pascal
  133. #define _near
  134. #define _far
  135. #define _huge
  136. #define _cdecl
  137.  
  138. /*----------------------------------------------------------------------*/
  139. /*      Macros for Floating Point                                       */
  140. /*----------------------------------------------------------------------*/
  141. #define EXP2(x) exp((x)*LN2)
  142. #define LOG2(x) (log(x)*(1./LN2))
  143. #define EXP10(x) exp((x)*LN10)
  144. #define LOG10(x) log10(x)
  145.  
  146. /*----------------------------------------------------------------------*/
  147. /*      Macros Defining Limits                                          */
  148. /*----------------------------------------------------------------------*/
  149. #define MAXALLOC    0x40000000 /* Largest permissible memory request */
  150.  
  151. #endif
  152.